// 自动生成模板EquipmentPart
package wearingpartsDefinition

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 设备件 结构体  EquipmentPart
type EquipmentPart struct {
	global.GVA_MODEL
	Code          *string `json:"code" form:"code" gorm:"comment:唯一标识每行数据的编号;column:code;" binding:"required"`                              //编码
	Name          *string `json:"name" form:"name" gorm:"comment:表示易损件的名称;column:name;" binding:"required"`                                    //名称
	Specification *string `json:"specification" form:"specification" gorm:"comment:表示易损件的具体规格型号;column:specification;" binding:"required"` //规格
	Cycle         *int    `json:"cycle" form:"cycle" gorm:"comment:表示该易损件的使用周期，以天为单位;column:cycle;" binding:"required"`                //周期
	UsageCount    *int    `json:"usageCount" form:"usageCount" gorm:"comment:表示该易损件的使用总次数;column:usage_count;" binding:"required"`         //使用次数
}

// TableName 设备件 EquipmentPart自定义表名 equipment_parts
func (EquipmentPart) TableName() string {
	return "equipment_parts"
}
